package com.fqgj.sentry.controller.pc.request;

import com.fqgj.sentry.common.exception.BizException;
import com.fqgj.sentry.common.exception.enums.ErrorCodeEnums;
import com.fqgj.sentry.common.request.ParamsObject;

/**
 * Created by ykpbean kangping.ying@yuntu-inc.com
 *
 * @description
 * @create 2017-08-31 下午4:16
 */


public class UpdateExecutorInfoVo extends ParamsObject {

    private Long executorId;
    private String executorInfo;

    @Override
    public void validate() {
        if (executorId == null || executorInfo == null) {
            throw new BizException(ErrorCodeEnums.param_valid_error);
        }
    }

    public Long getExecutorId() {
        return executorId;
    }

    public UpdateExecutorInfoVo setExecutorId(Long executorId) {
        this.executorId = executorId;
        return this;
    }

    public String getExecutorInfo() {
        return executorInfo;
    }

    public UpdateExecutorInfoVo setExecutorInfo(String executorInfo) {
        this.executorInfo = executorInfo;
        return this;
    }
}
